package request

import (
	"gitee.com/baal1990/epidemic/model/common/request"
)

type EpidemicRelatedStaffSearch struct {
	ID                 uint   `json:"id" form:"id"` // 主键ID
	Mobile             string `json:"mobile" form:"mobile"`
	Name               string `json:"name" form:"name"`
	Company            string `json:"company" form:"company"`
	Department         string `json:"department" form:"department"`
	Organization       string `json:"organization" form:"organization"`
	Location           string `json:"location" form:"location"`
	IsolationType      string `json:"isolationType" form:"isolationType"`
	HomeBeginDateStart string `json:"homeBeginDateStart" form:"homeBeginDateStart"`
	HomeBeginDateEnd   string `json:"homeBeginDateEnd" form:"homeBeginDateEnd"`
	CompanyOaDateStart string `json:"companyOaDateStart" form:"companyOaDateStart"`
	CompanyOaDateEnd   string `json:"companyOaDateEnd" form:"companyOaDateEnd"`
	ReturnDateStart    string `json:"returnDateStart" form:"returnDateStart"`
	ReturnDateEnd      string `json:"returnDateEnd" form:"returnDateEnd"`
	request.PageInfo
}

// 用户侧
// 登记疫情员工信息
type EpidemicRelatedStaffCheckinUserSide struct {
	Id                    int    `form:"id"`
	Name                  string `form:"name"`
	Mobile                string `form:"mobile"`
	Company               string `form:"company"`
	Department            string `form:"department"`
	Organization          string `form:"organization"`
	Location              string `form:"location" binding:"required"`
	AppletReport          string `form:"appletReport" binding:"required"`
	IsolationType         string `form:"isolationType" binding:"required"`
	Region                string `form:"region" binding:"required"`
	RegionName            string `form:"regionName" binding:"required"`
	ResidentialAddress    string `form:"residentialAddress" binding:"required"`
	Community             string `form:"community"`
	CommunityTel          string `form:"communityTel" `
	Street                string `form:"street"`
	Description           string `form:"description"`
	CommunityRequirements string `form:"communityRequirements"`
	HomeBeginDate         string `form:"homeBeginDate" binding:"required"`
}

// 用户侧
// 健康登记
type HealthCheckinUserSide struct {
	Mobile               string `form:"mobile"`
	TemperatureMorning   string `form:"temperatureMorning" binding:"required"`
	TemperatureAfternoon string `form:"temperatureAfternoon" binding:"required"`
	CovidTesting         string `form:"covidTesting" binding:"required"`
	DetectionTime        string `form:"detectionTime"`
}

type EpidemicRelatedStaffSet struct {
	Id                    int    `json:"id" form:"id"`
	Mobile                string `json:"mobile" form:"mobile" binding:"required"`
	Name                  string `json:"name" form:"name" binding:"required"`
	Company               string `json:"company" form:"company" binding:"required"`
	Department            string `json:"department" form:"department" binding:"required"`
	Organization          string `json:"organization" form:"organization" binding:"required"`
	Location              string `json:"location" form:"location" binding:"required"`
	AppletReport          string `json:"appletReport" form:"appletReport" binding:"required"`
	IsolationType         string `json:"isolationType" form:"isolationType" binding:"required"`
	Region                string `json:"region" form:"region" binding:"required"`
	RegionName            string `json:"regionName" form:"regionName" binding:"required"`
	ResidentialAddress    string `json:"ResidentialAddress" form:"ResidentialAddress" binding:"required"`
	Community             string `json:"community" form:"community"`
	CommunityTel          string `json:"communityTel" form:"communityTel"`
	Street                string `json:"street" form:"street"`
	Description           string `json:"description" form:"description"`
	CommunityRequirements string `json:"communityRequirements" form:"communityRequirements"`
	NucleicAcidRecord     string `json:"nucleicAcidRecord" form:"nucleicAcidRecord"`
	TemperatureRecord     string `json:"temperatureRecord" form:"temperatureRecord"`
	HomeBeginDate         string `json:"homeBeginDate" form:"homeBeginDate" binding:"required"`
	ReturnDate            string `json:"returnDate" form:"returnDate"`
	CompanyOaDate         string `json:"companyOaDate" form:"companyOaDate" `
	ReportDate            string `json:"reportDate" form:"reportDate"`
	ReportedBy            string `json:"reportedBy" form:"reportedBy"`
}

// 自动通知请求参数
type AutoNotify struct {
	Operation string `json:"operation" form:"operation" binding:"required"`
}

type EpidemicRelatedStaffReturn struct {
	Id         int    `json:"id" form:"id" binding:"required"`
	ReturnDate string `json:"returnDate" form:"returnDate" binding:"required"`
}
